package newPan3d.content.self
{
	import _Pan3D.display3D.Display3DContainer;
	import _Pan3D.program.Program3DManager;
	import _Pan3D.program.shaders.Md5Shader;
	
	import _me.Scene_data;
	
	import flash.display3D.Context3D;
	import flash.display3D.Program3D;
	


	public class SelfLevel
	{
		public function SelfLevel()
		{
			addMd5Model()
		}
		private var _md5container : Display3DContainer;
		private var _guaiwuMd5Mode:SelfDisplay3DMove;
		private function addMd5Model():void
		{
			var context3D : Context3D = Scene_data.context3D;
			_guaiwuMd5Mode = new SelfDisplay3DMove(context3D);
			_guaiwuMd5Mode.addMesh("0", "xingzou");
			_guaiwuMd5Mode.addAnim("xingzou", "xingzou");
			
			_guaiwuMd5Mode.scale=0.2
			_guaiwuMd5Mode.x=500;
			_guaiwuMd5Mode.y=-8
			_guaiwuMd5Mode.z=500;
			_guaiwuMd5Mode.rotationY=0
			_md5container=new Display3DContainer;
			_md5container.addChild(_guaiwuMd5Mode);
			var md5Program:Program3D = Program3DManager.getInstance().getProgram(Md5Shader.MD5SHADER);
			_guaiwuMd5Mode.setProgram3D(md5Program);
			
			//Scene_data.self3DMove=_guaiwuMd5Mode;
	

		}
		public function upData():void
		{
			_md5container.update();
		}
	}
}